package com.kasax.test.bc.ui.fragment

import android.view.View
import androidx.fragment.app.viewModels
import com.kasax.base.BaseFragment
import com.kasax.test.bc.R
import com.kasax.test.bc.viewmodel.TestViewModel


class JetpackComponentTestFragment : BaseFragment() {
    // 使用委托获取 TestViewModel
    private val testViewModel: TestViewModel by viewModels()

    override fun getLayoutId(): Int = R.layout.fragment_jetpack_component_test

    override fun initView(view: View) {
//        val recyclerview = view.findViewById<RecyclerView>(R.id.recyclerview)
//        testViewModel.datas.observe(this) {
//            Logger.log("initView data change")
//            recyclerview.adapter = TestAdapter(it)
//        }
//        Logger.log("initView exec fetchData")
//        testViewModel.fetchData()

    }


}